#include "mainwindow.h"

#include <QApplication>
#include <QString>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;

    QLabel lb("欢迎", &w);
    lb.setGeometry(350, 100, 200, 50);

    QFont qfont("宋体", 20);
    lb.setFont(qfont);

    QLineEdit le1(&w);
    le1.setGeometry(270, 240, 250, 40);

    QLineEdit le2(&w);
    le2.setGeometry(270, 300, 250, 40);
    le2.setEchoMode(QLineEdit::Password);

    QPushButton button1("登陆", &w);
    button1.setGeometry(300, 400 ,200 ,100);

    w.show();
    return a.exec();
}
